//author: create by SunJH
//时间: 2021/11/17 0017
//邮箱: 965989158@qq.com
//描述:分享功能

import 'package:flutter/material.dart';
import 'package:flutter_app/openeye/widget/app_bar.dart';
import 'package:flutter_app/stateLearn/click_txt.dart';
import 'package:share_plus/share_plus.dart';

class ShareInfo extends StatelessWidget {
  const ShareInfo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return materialPage(page: Container(
      alignment: Alignment.center,
      child: ClickTxt(info: "点击分享", onPressed: (){
        Share.share('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8dc7af47ecbd7ab1&redirect_uri=https%3A%2F%2Fh5.kaoyanbox.com%2Fcourse%2Fdetail%2F787&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect');
      }),
    ));
  }
}
